#pragma once

#include "Control/ControlInclude.h"
#include "Util/ResConfig.h"
#include "ZImprove/IResCfg.h"
#include "ZImprove/ContainerImprove.h"
#include "ZImprove/FAlpNumCtrl.h"

#include "ImproMsgCon.h"

#include "ProgressEx.h"
#include "CommandDef.h"



class CAlphaPauseCon 
	:public CImproMsgCon
	//:public CImproveCon
	//: public CContainer
{
public:
	CAlphaPauseCon(HWND hWnd);
public:
	virtual ~CAlphaPauseCon(void);
	virtual BOOL InitControls(DWORD dwData);
	virtual void OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);

	virtual void  Paint(CDC *pDC);

	void	UseApiAlphaBlend( CDC *pDC );

	BOOL   LoadIAlpNumInfo( IAlpNumInfo &info,wstring strkey );

	void	LoadPauseTime();
	void    DecPauseTime();

public:
	CIResCfg		m_config;
	CTimeCtrl*		m_pTime;
	CPicture*		m_pPicBK;
	CPicture*		m_pAlphaPicBK;

	CFAlpResIcon*	m_pPicIco1;


	CText*			m_pTxtTitle;
	CText*			m_pTxtMsg;

	int 			m_nPauseTime;


protected:
	int					m_nAniFrame;
	CFAlpNumCtrl*		m_pFalNum;



};
